package com.gw.quotes.activity;

import java.util.HashMap;

import net.tsz.afinal.annotation.view.ViewInject;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.gw.quotes.R;

public class AboutActivity extends BaseActivity {

	@ViewInject(id = R.id.text_title)
	private TextView text_title;
	@ViewInject(id = R.id.text_content)
	private TextView text_content;
	@ViewInject(id = R.id.text_remark)
	private TextView text_remark;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_about);
		HashMap<String, Object> mapIntr = (HashMap<String, Object>) getIntent()
				.getSerializableExtra("mapIntr");
		if (mapIntr != null) {
			initView(mapIntr);
		}

	}

	public void back(View v) {
		finish();
	}

	private void initView(HashMap<String, Object> map) {
		text_title.setText(map.get("title").toString());
		text_content.setText(map.get("content").toString());
		text_remark.setText(map.get("remark").toString());
	}
}
